package com.hzit.mmcb.core.controller.api;

import com.hzit.common.result.R;
import com.hzit.mmcb.core.service.ApiConfig1;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者：李嘉浩
 * 时间：2025-08-29-下午 11:23
 * 功能：
 */
@RestController
@RequestMapping("api/core/config")
public class ApiConfig {
    @Autowired
    private ApiConfig1 apiConfig1;

    @GetMapping("aa")
    @ApiOperation("配置")
    public R aa(@RequestHeader("token") String token){
        apiConfig1.getConfig();
        return R.ok().message("配置成功");
    }
}
